package com.ruan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruan.mapper.OnDutySalarySetMapper;
import com.ruan.pojo.OnDutySalarySet;
import com.ruan.service.OnDutySalarySetService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
@Slf4j
public class OnDutySalarySetServiceImpl extends ServiceImpl<OnDutySalarySetMapper, OnDutySalarySet>
        implements OnDutySalarySetService {

    @Autowired
    private OnDutySalarySetMapper onDutySalarySetMapper;

    //获取信息：请假扣除多少，加班补助多少。。。。
    @Override
    public OnDutySalarySet getOnDutySalarySet() {

        OnDutySalarySet onDutySalarySet = onDutySalarySetMapper.selectOne(null);

        return onDutySalarySet;
    }

    //管理员设置奖惩制度
//    @Override
//    public void setOnDutySalary(OnDutySalarySet onDutySalarySet) {
//        onDutySalarySetMapper.updateById(onDutySalarySet);
//    }
}
